﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using Compiled_Tests.AutomationAbstractions;
using Compiled_Tests.Utils;
using LEET.CommonInterfaces.Automation;
using LEET.LEETCommon;

namespace Compiled_Tests.ProcessWrappers
{
    public class TargetProcess : IProcess
    {
        String name;
        bool focus;

        public TargetProcess(String name, bool grabFocus)
        {
            this.name = name;
            this.focus = grabFocus;
        }

        public string Name
        {
            get { return name; }
        }

        public Process Process
        {
            get 
            {
                throw new Exception("Unable to target " + Name + ".");
            }
        }


        public IObservableWidget RootWidget
        {
            get { return new ObservableWidget(Utilities.Get_MainAE(Process)); }
        }


        
    }
}
